..
/
download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<!-- From 3031: The project shall use the S1000D standard page-oriented presentation rules for the applicability annotation. -->
<xsl:template match="applic">
<xsl:choose>
<xsl:when test="ancestor::referencedApplicGroup">
<xsl:text>(applicable to: </xsl:text>
<xsl:apply-templates select="displayText"/>
<xsl:text>) </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- From S1000D: When the applicability includes all instances of the Product, the
code "All" must be used. -->
<xsl:when test="child::displayText[not(text())]">
<xsl:text>All</xsl:text>
</xsl:when>
<xsl:otherwise><xsl:apply-templates select="displayText"/></xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="displayText">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="@applicRefId">
<xsl:for-each select="key('id',../@applicRefId)">
<xsl:apply-templates select="displayText"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
gopher://khzae.net/0/s1000d/links/projects/3031/Army S1000D Stylesheets/FO-3031-A00-USARMY-APPLIC_001-00_EN-US.xsl